<template>
    <el-container>
        <sidebar :isCollapse="value"></sidebar>
        <el-container>
            <el-header style="height: 80px">
                <el-switch
                        v-model="value"
                        active-color="#13ce66"
                        inactive-color="#ff4949">
                </el-switch>
                <el-button type="danger" icon="el-icon-delete" circle></el-button>
            </el-header>
            <el-main>main</el-main>
        </el-container>
    </el-container>
</template>

<script>
    import Sidebar from "../../components/admin/Sidebar";

    export default {
        name: "index",
        components: {Sidebar},

        data() {
            return {
                circleUrl: "Me.JPG",
                activeIndex: '1',
                value: false
            }
        },
        methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    }
</script>

<style scoped>
    .el-header, .el-footer {
        background-color: #ffffff;
        color: #333;
        line-height: 80px;
    }

    .el-header .el-button {
        float: right;
        margin-top: 20px;
        margin-right: 50px;
    }

    .el-aside {
        background-color: #D3DCE6;
        color: #333;
        text-align: center;
        line-height: 200px;
    }

    .el-main {
        background-color: #E9EEF3;
        color: #333;
        text-align: center;
        line-height: 160px;
    }

    body > .el-container {
        margin-bottom: 40px;
    }

    .el-container:nth-child(5) .el-aside,
    .el-container:nth-child(6) .el-aside {
        line-height: 260px;
    }

    .el-container:nth-child(7) .el-aside {
        line-height: 320px;
    }
</style>